﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace ALS.Poco
{
    /// <summary>
    /// 出货口表映射
    /// </summary>
    [Table("ShippingPort")]
    public class ShippingPortPoco
    {
        /// <summary>
        /// 自增主键
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long ShippingPortID { get; set; }

        /// <summary>
        /// 自动物流工人ID
        /// </summary>
        [Required]
        public int AlsWorkerID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Required]
        [StringLength(64)]
        public string Name { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        [Required]
        [StringLength(16)]
        public string IPAddess { get; set; }
    }
}
